package com.hb.hb_tblog;



import java.sql.Connection;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
import com.core.*;

import com.hb.hb_member.*;
import com.wonders.ips.common.*;

/**
 * @author zhubin
 *
 */
public class TbLogAction extends DispatchAction{ 

public void save(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response) throws SQLException{
		

	TbLogDAO dao=new TbLogDAO();
	TbLog tblog=new TbLog();
	
	String operate_user=request.getParameter("operate_user");
	String operate_module=request.getParameter("operate_module");
	String operate_type=request.getParameter("operate_type");
	String operate_object_name=request.getParameter("operate_object_name");
	String operate_ip=request.getParameter("operate_ip");
	

	tblog.setOperateUser(operate_user);
	tblog.setOperateTime(new Date());
	tblog.setOperateModule(operate_module);
	tblog.setOperateType(operate_type);
	tblog.setOperateObjectName(operate_object_name);
	tblog.setOperateIp(operate_ip);
	
	dao.save(tblog);

}
}
